# =============================
# mesh partitioning
# =============================
add_library( structMeshPart "" )

target_sources( structMeshPart PRIVATE
	structMeshDistribution.cpp
	structMeshDistribution.hpp
	structMeshDistribution.tpp
	structMeshFunctions.hpp
	structMeshIdxTranslation.cpp
	structMeshIdxTranslation.hpp
	structMeshOverlap.hpp
	structMeshPart.cpp
	structMeshPart.hpp
	structMeshPartitioning.cpp
	structMeshPartitioning.hpp
	structMeshPartitioning.tpp
)

target_link_libraries( structMeshPart PUBLIC
	mesh
	mpiHelpers
	solverBase
)

target_include_directories( structMeshPart PUBLIC
	${CMAKE_CURRENT_SOURCE_DIR}
)

# =============================
# StructMesh distribution benchmark
# =============================
add_executable( structMeshBench "" )

target_sources( structMeshBench PRIVATE
	structMeshDistBenchmark.cpp
)

target_link_libraries( structMeshBench PRIVATE
	mpiHelpers
	structMeshPart
)